﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
using Abp.Application.Services.Dto;
using Abp.AutoMapper;
using Abp.Domain.Entities.Auditing;
using FwProject.ShoppingMall.Commodity;

namespace FwProject.Commodity.Dto
{
    /// <summary>
    /// 用户收藏商品信息
    /// </summary>
    public class CommodityCollectionProductShopDto : EntityDto<Guid>
    {
        /// <summary>
        /// 用户id
        /// </summary>
        [Display(Name = "用户编号")]
        public long UserId { get; set; }

        /// <summary>
        /// 商品Id
        /// </summary>
        [Display(Name = "商品编号")]
        public Guid ShopproductId { get; set; }

        /// <summary>
        /// 产品类别id
        /// </summary>
        [Display(Name = "商品分类")]
        public Guid ShopTypeid { get; set; }
        /// <summary>
        /// 商品名称
        /// </summary>
        [Required]
        [Display(Name = "商品名称")]
        public string ProductName { get; set; }


        public string ImagePic { get; set; }
        /// <summary>
        /// 商品售价
        /// </summary>
        [Required]
        [Display(Name = "销售价")]
        public decimal SpcemarketPrice { get; set; } = 0m;
        /// <summary>
        /// 商品是否上架
        /// </summary>
        [Display(Name = "是否上架")]
        public bool IsGrounding { get; set; }

        /// <summary>
        /// 计价单位
        /// </summary>
        [Display(Name = "计价单位")]
        public string Unit { get; set; }
        /// <summary>
        /// 重量
        /// </summary>
        [Required]
        [Display(Name = "重量")]
        public float SpceWeight { get; set; } = 0;

        /// <summary>
        /// 商品收藏总数
        /// </summary>
        public int CommodityCollectionCount { get; set; }


    }
}
